package com.yuwubao.hz_International.services;

import com.yuwubao.hz_International.entities.ConsumerEntity;
import com.yuwubao.hz_International.entities.vo.ConsumerVo;

import java.util.List;

/**
 * Created by yangyu on 2018/1/25.
 */
public interface ConsumerService {
    ConsumerEntity findByPhone(String phone);

    ConsumerEntity save(ConsumerEntity consumerEntity);

    ConsumerEntity findByPhoneAndPassword(String phone, String pwd);

    List<ConsumerVo> findConsumerList(String consumerName, int index, int size);

    ConsumerEntity findOne(int consumerId);

    ConsumerEntity update(ConsumerEntity consumerEntity);

    ConsumerEntity findByName(String consumerName);

    ConsumerVo findById(int consumerId);

    ConsumerEntity delete(int consumerId);
}
